//
//  QAService.h
//  WisdomStar
//
//  Created by 谭飞 on 2018/11/15.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^ReturnBlock)(id object);

NS_ASSUME_NONNULL_BEGIN

@interface QAService : NSObject


/**
 获取问题池列表

 @param params params
 @param result result
 */
+ (void)fetchAskListWithParams:(id)params result:(ReturnBlock)result;


/**
 获取问题详情

 @param params params
 @param result result
 */
+ (void)fetchAskDetailsWithParams:(id)params result:(ReturnBlock)result;


/**
 获取我的问题

 @param type type
 @param result result
 */
+ (void)fetchMyQuestionWithType:(NSInteger)type result:(ReturnBlock)result;


/**
 添加问题

 @param params params
 @param complete callback
 */
+ (void)addQuestionWithParams:(id)params completion:(void(^)(BOOL success))complete;


/**
 添加评价

 @param params params
 @param complete callback
 */
+ (void)addCommentWithParams:(id)params completion:(void(^)(BOOL success))complete;


/**
 提问采纳

 @param params params
 @param complete callback
 */
+ (void)acceptAskWithParams:(id)params completion:(void(^)(BOOL success))complete;


/**
 点赞

 @param params params
 @param complete callback
 */
+ (void)askTagsWithParams:(id)params completion:(void(^)(BOOL success))complete;

@end

NS_ASSUME_NONNULL_END
